<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>location</title>
	<script>
		
		console.log(location);
		document.write(location.href);





	</script>
</head>
<body>
	<p onclick="location.reload()">刷新</p>
	<p onclick="location.replace('http://www.baidu.com')">替换</p>
	<p onclick="location.assign('http://www.baidu.com')">替换</p>
</body>
</html>